package com.example.memory.entity;

import com.example.memory.util.FunctionUtils;
import com.example.memory.util.IDUtils;
import lombok.Data;

import java.util.List;

@Data
public class Content {
    private String id;
    private String time;
    private String title;
    private String content;
    private String files;

    List<File> fileList;

    public static Content getInstance(String title, String content) {
        Content ins = new Content();
        ins.setId(IDUtils.getStringID());
        ins.setTime(FunctionUtils.getNowTime());
        ins.setTitle(title);
        ins.setContent(content);
        return ins;
    }
}
